xen/arm64: Use alternative to skip the check of pending serrors
authorWei Chen <Wei.Chen@arm.com>
Wed, 5 Apr 2017 09:09:11 +0000 (17:09 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 5 Apr 2017 19:12:29 +0000 (12:12 -0700)
commita61573f4f17a09de1f8ab761235842531b957337
tree6599c953353fb151846576792e7b2ea9917253ee
parent4e1e4a9848518ab98aa7c309a46874bc343a8e75
xen/arm64: Use alternative to skip the check of pending serrors

We have provided an option to administrator to determine how to
handle the SErrors. In order to skip the check of pending SError,
in conventional way, we have to read the option every time before
we try to check the pending SError. This will add overhead to check
the option at every trap.

The ARM64 supports the alternative patching feature. We can use an
ALTERNATIVE to avoid checking option at every trap. We added a new
cpufeature named "SKIP_SYNCHRONIZE_SERROR_ENTRY_EXIT". This feature
will be enabled when the option is not diverse.

Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/entry.S